SOCKLIB = mysockets.o
EXE = myserver

all:  $(EXE)

clean:
	rm -f *.o $(EXE)

.SUFFIXES: .c .o
.c.o:
	gcc -c -g $*.c

arduino_serial.o: arduino_serial.c
	gcc -c -g arduino_serial.c

mysockets.o: mysockets.c
	gcc -c -g mysockets.c

myserver: myserver.o mysockets.o arduino_serial.o
	gcc -o $@ -lpthread myserver.o $(SOCKLIB) arduino_serial.o
